package backstage.app.service.impl.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import backstage.app.entity.LevelkillStudent;
import backstage.app.mapper.LevelkillStudentMapper;
import backstage.app.respont.MyCountNumber;
import backstage.app.respont.RespontDateJson;
import backstage.app.util.ACountResult;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;

@Component
@SuppressWarnings("all")
public class LevelkillStudentUtil {
	
	@Autowired
	private LevelkillStudentMapper levelkillStudentMapper;
	
	 
	public RespontDateJson<?> update( 
			Integer leId,
			Double height,Double width,Double abduction,Double fingerSpan,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			Double itemContextSevenFirst, Double itemContextSevenSecond,Double itemContextSevenThirdly, Double itemContextSevenFourthly
			){
		LevelkillStudent ls=new LevelkillStudent();
		ls.setLeId(leId);
		ls.setHeight(height);
		ls.setWeight(width);
		ls.setAbduction(abduction);
		ls.setFingerSpan(fingerSpan);
	 
		ls.setLastUpdateTime(LocalDateTime.now());
		LevelkillStudent lstm=levelkillStudentMapper.selectByPrimaryKey(leId);
		if(lstm.getKillContextId()==1) {
			ls=leveaKill_first(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(lstm.getKillContextId()==2) {
			ls=leveaKill_second(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(lstm.getKillContextId()==3) {
			ls=leveaKill_three(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(lstm.getKillContextId()==4) {
			ls=leveaKill_forth(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(lstm.getKillContextId()==5) {
			ls=leveaKill_five(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}
		int index = -1;
		index=levelkillStudentMapper.updateByPrimaryKeySelective(ls);
		return RespontDateJson.ok(index,"修改成功");
 
	}
	

	public RespontDateJson<?> insert( 
			Integer killContextId,Integer sid,
			Double height,Double width,Double abduction,Double fingerSpan,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			Double itemContextSevenFirst, Double itemContextSevenSecond,Double itemContextSevenThirdly, Double itemContextSevenFourthly
			){
		LevelkillStudent ls=new LevelkillStudent();
		ls.setKillContextId(killContextId);
		ls.setSid(sid);
		ls.setHeight(height);
		ls.setWeight(width);
		ls.setAbduction(abduction);
		ls.setFingerSpan(fingerSpan);
		ls.setCreateTime(LocalDateTime.now());
		ls.setLastUpdateTime(LocalDateTime.now());
		if(killContextId==1) {
			ls=leveaKill_first(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(killContextId==2) {
			ls=leveaKill_second(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(killContextId==3) {
			ls=leveaKill_three(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(killContextId==4) {
			ls=leveaKill_forth(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(killContextId==5) {
			ls=leveaKill_five(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}
		int index = -1;
		index=levelkillStudentMapper.insert(ls);
		return RespontDateJson.ok(index,"添加成功");
 
	}
	
	
	public LevelkillStudent set( 
			LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			Double itemContextSevenFirst, Double itemContextSevenSecond,Double itemContextSevenThirdly, Double itemContextSevenFourthly
			){
		 
	 
		if(ls.getKillContextId()==1) {
			ls=leveaKill_first(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(ls.getKillContextId()==2) {
			ls=leveaKill_second(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(ls.getKillContextId()==3) {
			ls=leveaKill_three(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(ls.getKillContextId()==4) {
			ls=leveaKill_forth(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}else if(ls.getKillContextId()==5) {
			ls=leveaKill_five(ls, itemContextOneFirst, itemContextOneSecond, itemContextOneThirdly, itemContextOneFourthly, 
					itemContextTowFirst, itemContextTowSecond, itemContextTowThirdly, itemContextTowFourthly, itemContextThreeFirst,
					itemContextThreeSecond, itemContextThreeThirdly, itemContextThreeFourthly, itemContextFrothFirst,
					itemContextFrothSecond, itemContextFrothThirdly, itemContextFrothFourthly, itemContextFiveFirst, 
					itemContextFiveSecond, itemContextFiveThirdly, itemContextFiveFourthly, itemContextSixFirst, itemContextSixSecond, 
					itemContextSixThirdly, itemContextSixFourthly, itemContextSevenFirst, itemContextSevenSecond, itemContextSevenThirdly,
					itemContextSevenFourthly);
		}
		 
		return  ls;
 
	}

	/***第一个技能测试***/ 
	private LevelkillStudent  leveaKill_first(LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			 Double itemContextSevenFirst, Double itemContextSevenSecond, Double itemContextSevenThirdly,Double itemContextSevenFourthly
			){
		//第一个技能测试，第一小部分
		LevelkillStudent lstu=ls;
		TreeMap<Double,Integer> hashMap1= new TreeMap<>(new ACountResult());
		hashMap1.put(0.0,0);
		hashMap1.put(1.0,18);hashMap1.put(2.0,28);hashMap1.put(3.0,38);
		hashMap1.put(4.0,65);hashMap1.put(5.0,77);hashMap1.put(6.0,83);
		hashMap1.put(7.0,90);hashMap1.put(8.0,96);hashMap1.put(9.0,100);
		int [][]arr1= {
				{0,0},{1,18},{2,28},{ 3,38},{4,65 },{5,77 },{6,83 },{7,90},{8,96},{9,100}
		};
		lstu.setContextOneFirst(itemContextOneFirst);
		lstu.setContextOneSecond(itemContextOneSecond);
		lstu.setContextOneThirdly(itemContextOneThirdly);
		lstu.setContextOneFourthly(itemContextOneFourthly);
		int oneSc1=0;
		int oneSc2=0;
		int oneSc3=0;
		for (Entry<Double, Integer> hashmap1 : hashMap1.entrySet()) {
			if(itemContextOneFirst>=hashmap1.getKey()) {
				oneSc1=hashmap1.getValue();
			}
			if(itemContextOneSecond>=hashmap1.getKey()) {
				oneSc2=hashmap1.getValue();
			}
			if(itemContextOneThirdly>=hashmap1.getKey()) {
				oneSc3=hashmap1.getValue();
			}
			 
		}
		//取总平均分
		int contextOneScroue=(oneSc1+oneSc2+oneSc3)/3;
	
		lstu.setContextOneScroue(contextOneScroue);

		//第一个技能测试，第二小部分
		TreeMap<Double,Integer> hashMap2=new  TreeMap<>(new ACountResult());
		hashMap2.put(23.0,0);
		hashMap2.put(25.0,10);hashMap2.put(26.0,20);hashMap2.put(27.0,23);
		hashMap2.put(28.0,27);hashMap2.put(30.0,43);hashMap2.put(32.0,60);
		hashMap2.put(34.0,83);
		hashMap2.put(35.0,90);hashMap2.put(36.0,95);hashMap2.put(37.0,100);
		int towSc1=0, towSc2=0,towSc3=0,towSc4=0;
		ls.setContextTowFirst(itemContextTowFirst);
		ls.setContextTowSecond(itemContextTowSecond);
		ls.setContextTowThirdly(itemContextTowThirdly);
		ls.setContextTowFourthly(itemContextTowFourthly);
		
		for (Entry<Double, Integer> hashmap2 : hashMap2.entrySet()) {
			
			if(itemContextTowFirst>=hashmap2.getKey()) {
				towSc1=hashmap2.getValue();
			}
			if(itemContextTowSecond>=hashmap2.getKey()) {
				towSc2=hashmap2.getValue();
			}
			if(itemContextTowThirdly>=hashmap2.getKey()) {
				towSc3=hashmap2.getValue();
			}
			if(itemContextTowFourthly>=hashmap2.getKey()) {
				towSc4=hashmap2.getValue();
			}
		
		}
	
		int contextTowScroue=(towSc1+towSc2+towSc3+towSc4)/4;
	
		lstu.setContextTowScroue(contextTowScroue);
		
		
		//第一个技能测试，第三小部分
		TreeMap<Double,Integer> hashMap3 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap3.put(1.0,0);
		hashMap3.put(2.0,18);hashMap3.put(3.0,40);hashMap3.put(4.0,56);
		hashMap3.put(5.0,72);hashMap3.put(6.0,86);hashMap3.put(7.0,100);
		int thr1=0,thr2=0, thr3=0,thr4=0;
		ls.setContextThreeFirst(itemContextThreeFirst);
		ls.setContextThreeSecond(itemContextThreeSecond);
		ls.setContextThreeThirdly(itemContextThreeThirdly);
		ls.setContextThreeFourthly(itemContextThreeFourthly);
		for (Entry<Double, Integer> hashmap3 : hashMap3.entrySet()) {
			if(itemContextThreeFirst>=hashmap3.getKey()) {
				thr1=hashmap3.getValue();
			}
			if(itemContextThreeSecond>=hashmap3.getKey()) {
				thr2=hashmap3.getValue();
			}
			if(itemContextThreeThirdly>=hashmap3.getKey()) {
				thr3=hashmap3.getValue();
			}
			
			if(itemContextThreeFourthly>=hashmap3.getKey()) {
				thr4=hashmap3.getValue();
			}
		
			 
		}
		int contextThreScroue=(thr1+thr2+thr3+thr4)/4;
		
		lstu.setContextThreeScroue(contextThreScroue);

		//第一个技能测试，第四小部分
		TreeMap<Double,Integer>  hashMap4 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap4.put(24.0,0);hashMap4.put(26.0,23);
		hashMap4.put(28.0,26);hashMap4.put(29.0,35);hashMap4.put(31.0,47);
		hashMap4.put(33.0,61);hashMap4.put(34.0,67);hashMap4.put(35.0,73);
		hashMap4.put(36.0,84);hashMap4.put(37.0,92);hashMap4.put(38.0,100);
		int forth1=0,forth2=0,forth3=0,forth4=0;
		ls.setContextFrothFirst(itemContextFrothFirst);
		ls.setContextFrothSecond(itemContextFrothSecond);
		ls.setContextFrothThirdly(itemContextFrothThirdly);
		ls.setContextFrothFourthly(itemContextFrothFourthly);
		for (Entry<Double, Integer> hashmap4 : hashMap4.entrySet()) {
			if(itemContextFrothFirst>=hashmap4.getKey()) {
				forth1=hashmap4.getValue();
			}
			if(itemContextFrothSecond>=hashmap4.getKey()) {
				forth2=hashmap4.getValue();
			}
			if(itemContextFrothThirdly>=hashmap4.getKey()) {
				forth3=hashmap4.getValue();
			}
			if(itemContextFrothFourthly!=null) {
				if(itemContextFrothFourthly>=hashmap4.getKey()) {
					forth4=hashmap4.getValue();
				}
			}
		}
		
		int contextForthScroue=(forth1+forth2+forth3+forth4)/4;
		
		lstu.setContextFrothScroue(contextForthScroue);
		

		//第一个技能测试，第5小部分
		TreeMap<Double,Integer> hashMap5 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap5.put(4.0,0);hashMap5.put(5.0,8);
		hashMap5.put(6.0,17);hashMap5.put(7.0,23);hashMap5.put(8.0,30);
		hashMap5.put(9.0,35);hashMap5.put(10.0,40);hashMap5.put(11.0,51);
		hashMap5.put(12.0,60);hashMap5.put(13.0,73);hashMap5.put(14.0,77);
		hashMap5.put(15.0,85);hashMap5.put(16.0,93);hashMap5.put(17.0,100);
		int five1=0,five2=0,five3=0;
		ls.setContextFiveFirst(itemContextFiveFirst);
		ls.setContextFiveSecond(itemContextFiveSecond);
		ls.setContextFiveThirdly(itemContextFiveThirdly);
		ls.setContextFiveFourthly(itemContextFiveFourthly);
		for (Entry<Double, Integer> hashmap5 : hashMap5.entrySet()) {
			if(itemContextFiveFirst>=hashmap5.getKey()) {
				five1=hashmap5.getValue();
			}
			if(itemContextFiveSecond>=hashmap5.getKey()) {
				five2=hashmap5.getValue();
			}
			if(itemContextFiveThirdly>=hashmap5.getKey()) {
				five3=hashmap5.getValue();
			}
		}
		System.out.println(five1+"\t"+five2+"\t"+five3);
		int contextfiveScroue=(five1+five2+five3)/3;
		 
		lstu.setContextFiveScroue(contextfiveScroue);
		

		//第一个技能测试，第⑥小部分
		TreeMap<Double,Integer> hashMap6 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap6.put(48.00,0);hashMap6.put(47.99,10);
		hashMap6.put(45.99,20);hashMap6.put(43.99,27);hashMap6.put(41.99,33);
		hashMap6.put(39.99,40);hashMap6.put(37.99,62);hashMap6.put(35.99,78);
		hashMap6.put(33.99,83);hashMap6.put(29.99,90);hashMap6.put(27.99,100);
		int six1=0, six2=0,six3=0;
		ls.setContextSixFirst(itemContextSixFirst);
		ls.setContextSixSecond(itemContextSixSecond);
		ls.setContextSixThirdly(itemContextSixThirdly);
		ls.setContextSixFourthly(itemContextSixFourthly);
		for (Map.Entry<Double, Integer> hashmap6 : hashMap6.entrySet()) {
			if(itemContextSixFirst>=hashmap6.getKey()) {
				six1=hashmap6.getValue();
			}
			if(itemContextSixSecond>=hashmap6.getKey()) {
				six2=hashmap6.getValue();
			}
			if(itemContextSixThirdly>=hashmap6.getKey()) {
				six3=hashmap6.getValue();
			}
			 
			 
		}
		int contextSixScroue=(six1+six2+six3)/3;
		 
		lstu.setContextSixScroue(contextSixScroue);
		

		//第一个技能测试，第7小部分
		TreeMap<Double,Integer> hashMap7 =new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap7.put(1.0,0);hashMap7.put(2.0,7);
		hashMap7.put(3.0,17);hashMap7.put(4.0,30);hashMap7.put(5.0,40);
		hashMap7.put(6.0,51);hashMap7.put(7.0,60);hashMap7.put(8.0,70);
		hashMap7.put(9.0,80);hashMap7.put(10.0,90);hashMap7.put(11.0,100);
		int seven1=0,seven2=0, seven3=0,seven4=0;
		ls.setContextSevenFirst(itemContextSevenFirst);
		ls.setContextSevenSecond(itemContextSevenSecond);
		ls.setContextSevenThirdly(itemContextSevenThirdly);
		ls.setContextSevenFourthly(itemContextSevenFourthly);
		for (Entry<Double, Integer> hashmap7 : hashMap7.entrySet()) {
			if(itemContextSevenFirst>=hashmap7.getKey()) {
				seven1=hashmap7.getValue();
			}
			if(itemContextSevenSecond>=hashmap7.getKey()) {
				seven2=hashmap7.getValue();
			}
			if(itemContextSevenThirdly>=hashmap7.getKey()) {
				seven3=hashmap7.getValue();
			}
			if(itemContextSevenFourthly!=null) {
				if(itemContextSevenFourthly>=hashmap7.getKey()) {
					seven4=hashmap7.getValue();
				}
			} 
		}
		int contextSevenScore=(seven1+seven2+seven3+seven4)/4;
		 
		lstu.setContextSevenScroue(contextSevenScore);
		return ls;

	}





	/***第二个技能测试***/
	private LevelkillStudent  leveaKill_second(LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			 Double itemContextSevenFirst, Double itemContextSevenSecond, Double itemContextSevenThirdly,Double itemContextSevenFourthly){
		// 第一小部分
		LevelkillStudent lstu=ls;
		TreeMap<Double,Integer> hashMap1= new  TreeMap<>(new ACountResult());
		hashMap1.put(25.0,0);hashMap1.put(24.99,10);hashMap1.put(23.99,17);
		hashMap1.put(22.99,27);hashMap1.put(21.99,30);
		hashMap1.put(20.99,34);hashMap1.put(19.99,40);
		hashMap1.put(18.99,53);hashMap1.put(17.99,63);
		hashMap1.put(16.99,72);hashMap1.put(15.99,78);hashMap1.put(14.99,83);
		hashMap1.put(13.99,88);hashMap1.put(12.99,94);hashMap1.put(11.99,100);
		int oneSc1=0,oneSc2=0, oneSc3=0;
		for (Map.Entry<Double, Integer> hashmap1 : hashMap1.entrySet()) {
			if(itemContextOneFirst>=hashmap1.getKey()) {
				oneSc1=hashmap1.getValue();
			}
			if(itemContextOneSecond>=hashmap1.getKey()) {
				oneSc2=hashmap1.getValue();
			}
			if(itemContextOneThirdly>=hashmap1.getKey()) {
				oneSc3=hashmap1.getValue();
			}
			 
		}
		//取总平均分
		int contextOneScroue=(oneSc1+oneSc2+oneSc3)/3;
		lstu.setContextOneScroue(contextOneScroue);
		// 第二小部分
		TreeMap<Double,Integer> hashMap2= new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap2.put(6.0,0);hashMap2.put(7.0,7);
		hashMap2.put(8.0,15);hashMap2.put(9.0,27);hashMap2.put(10.0,37);
		hashMap2.put(11.0,47);hashMap2.put(12.0,60);hashMap2.put(13.0,72);
		hashMap2.put(14.0,83);hashMap2.put(15.0,92);hashMap2.put(16.0,100);
		int towSc1=0,towSc2=0, towSc3=0,towSc4=0;
		ls.setContextTowFirst(itemContextTowFirst);
		ls.setContextTowSecond(itemContextTowSecond);
		ls.setContextTowThirdly(itemContextTowThirdly);
		ls.setContextTowFourthly(itemContextTowFourthly);
		for (Entry<Double, Integer> hashmap2 : hashMap2.entrySet()) {
			if(itemContextTowFirst>=hashmap2.getKey()) {
				towSc1=hashmap2.getValue();
			}
			if(itemContextTowSecond>=hashmap2.getKey()) {
				towSc2=hashmap2.getValue();
			}
			if(itemContextTowThirdly>=hashmap2.getKey()) {
				towSc3=hashmap2.getValue();
			}
		 
		}
		int contextTowScroue=(towSc1+towSc2+towSc3)/3;
		lstu.setContextTowScroue(contextTowScroue);
		// 第三小部分
		TreeMap<Double,Integer> hashMap3 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap3.put(26.0,0);
		hashMap3.put(25.99,10);hashMap3.put(23.99,17);hashMap3.put(21.99,33);
		hashMap3.put(19.99,40);hashMap3.put(17.99,60);hashMap3.put(15.99,75);
		hashMap3.put(13.99,83);hashMap3.put(11.99,90);hashMap3.put(9.99,100);
		int thr1=0,thr2=0, thr3=0,thr4=0;
		ls.setContextThreeFirst(itemContextThreeFirst);
		ls.setContextThreeSecond(itemContextThreeSecond);
		ls.setContextThreeThirdly(itemContextThreeThirdly);
		ls.setContextThreeFourthly(itemContextThreeFourthly);
		for (Entry<Double, Integer> hashmap3 : hashMap3.entrySet()) {
			if(itemContextThreeFirst>=hashmap3.getKey()) {
				thr1=hashmap3.getValue();
			}
			if(itemContextThreeSecond>=hashmap3.getKey()) {
				thr2=hashmap3.getValue();
			}
			if(itemContextThreeThirdly>=hashmap3.getKey()) {
				thr3=hashmap3.getValue();
			}
			if(itemContextThreeFourthly!=null) {
				if(itemContextThreeFourthly>=hashmap3.getKey()) {
					thr4=hashmap3.getValue();
				}
			}
		}
		int contextThreScroue=(thr1+thr2+thr3+thr4)/4;
		lstu.setContextThreeScroue(contextThreScroue);

		// 第四小部分
		TreeMap<Double,Integer>  hashMap4 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap4.put(5.0,0);hashMap4.put(6.0,13);hashMap4.put(7.0,33);
		hashMap4.put(8.0,43);hashMap4.put(9.0,57);hashMap4.put(10.0,70);
		hashMap4.put(11.0,83);hashMap4.put(12.0,91);hashMap4.put(13.0,100);
		int forth1=0, forth2=0, forth3=0, forth4=0;
		ls.setContextFrothFirst(itemContextFrothFirst);
		ls.setContextFrothSecond(itemContextFrothSecond);
		ls.setContextFrothThirdly(itemContextFrothThirdly);
		ls.setContextFrothFourthly(itemContextFrothFourthly);
		for (Entry<Double, Integer> hashmap4 : hashMap4.entrySet()) {
			if(itemContextFrothFirst>=hashmap4.getKey()) {
				forth1=hashmap4.getValue();
			}
			if(itemContextFrothSecond>=hashmap4.getKey()) {
				forth2=hashmap4.getValue();
			}
			if(itemContextFrothThirdly>=hashmap4.getKey()) {
				forth3=hashmap4.getValue();
			}
			if(itemContextFrothFourthly!=null) {
				if(itemContextFrothFourthly>=hashmap4.getKey()) {
					forth4=hashmap4.getValue();
				}
			}
		}
		int contextForthScroue=(forth1+forth2+forth3+forth4)/4;
		lstu.setContextFrothScroue(contextForthScroue);
		// ，第5小部分
		TreeMap<Double,Integer> hashMap5 =new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap5.put(4.0,0);hashMap5.put(5.0,8);
		hashMap5.put(6.0,17);hashMap5.put(7.0,23);
		hashMap5.put(8.0,30);hashMap5.put(9.0,35);
		hashMap5.put(10.0,40);hashMap5.put(11.0,51);
		hashMap5.put(12.0,60);hashMap5.put(13.0,73);hashMap5.put(14.0,77);
		hashMap5.put(15.0,85);hashMap5.put(16.0,93);hashMap5.put(17.0,100);
		int five1=0,five2=0,five3=0, five4=0;
		ls.setContextFiveFirst(itemContextFiveFirst);
		ls.setContextFiveSecond(itemContextFiveSecond);
		ls.setContextFiveThirdly(itemContextFiveThirdly);
		ls.setContextFiveFourthly(itemContextFiveFourthly);
		for (Entry<Double, Integer> hashmap5 : hashMap5.entrySet()) {
			if(itemContextFiveFirst>=hashmap5.getKey()) {
				five1=hashmap5.getValue();
			}
			if(itemContextFiveSecond>=hashmap5.getKey()) {
				five2=hashmap5.getValue();
			}
			if(itemContextFiveThirdly>=hashmap5.getKey()) {
				five3=hashmap5.getValue();
			}
			if(itemContextFiveFourthly!=null) {
				if(itemContextFiveFourthly>=hashmap5.getKey()) {
					five4=hashmap5.getValue();
				}
			}
		}
		int contextfiveScroue=(five1+five2+five3+five4)/4;
		lstu.setContextFiveScroue(contextfiveScroue);

		// ，第6小部分
		TreeMap<Double,Integer> hashMap6 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap6.put(1.0,0);hashMap6.put(2.0,7);
		hashMap6.put(3.0,17);hashMap6.put(4.0,30);hashMap6.put(5.0,40);
		hashMap6.put(6.0,51);hashMap6.put(7.0,60);hashMap6.put(8.0,70);
		hashMap6.put(9.0,80);hashMap6.put(10.0,90);hashMap6.put(11.0,100);
		int six1=0, six2=0,six3=0, six4=0;
		ls.setContextSixFirst(itemContextSixFirst);
		ls.setContextSixSecond(itemContextSixSecond);
		ls.setContextSixThirdly(itemContextSixThirdly);
		ls.setContextSixFourthly(itemContextSixFourthly);
		for (Entry<Double, Integer> hashmap6 : hashMap6.entrySet()) {
			if(itemContextSixFirst>=hashmap6.getKey()) {
				six1=hashmap6.getValue();
			}
			if(itemContextSixSecond>=hashmap6.getKey()) {
				six2=hashmap6.getValue();
			}
			if(itemContextSixThirdly>=hashmap6.getKey()) {
				six3=hashmap6.getValue();
			}
			if(itemContextSixFourthly!=null) {
				if(itemContextSixFourthly>=hashmap6.getKey()) {
					six4=hashmap6.getValue();
				}
			}
		}
		int contextSixScroue=(six1+six2+six3+six4)/4;
		lstu.setContextSixScroue(contextSixScroue);

		//第一个技能测试，第⑥小部分
		TreeMap<Double,Integer> hashMap7 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap7.put(1.0,0);hashMap7.put(2.0,7);
		hashMap7.put(3.0,17);hashMap7.put(4.0,30);hashMap7.put(5.0,40);
		hashMap7.put(6.0,51);hashMap7.put(7.0,60);hashMap7.put(8.0,70);
		hashMap7.put(9.0,80);hashMap7.put(10.0,90);hashMap7.put(11.0,100);
		int seven1=0,seven2=0, seven3=0,seven4=0;
		ls.setContextSevenFirst(itemContextSevenFirst);
		ls.setContextSevenSecond(itemContextSevenSecond);
		ls.setContextSevenThirdly(itemContextSevenThirdly);
		ls.setContextSevenFourthly(itemContextSevenFourthly);
		for (Entry<Double, Integer> hashmap7 : hashMap7.entrySet()) {
			if(itemContextSevenFirst>=hashmap7.getKey()) {
				seven1=hashmap7.getValue();
			}
			if(itemContextSevenSecond>=hashmap7.getKey()) {
				seven2=hashmap7.getValue();
			}
			if(itemContextSevenThirdly>=hashmap7.getKey()) {
				seven3=hashmap7.getValue();
			}
			if(itemContextSevenFourthly!=null) {
				if(itemContextSevenFourthly>=hashmap7.getKey()) {
					seven4=hashmap7.getValue();
				}
			}
		}
		int contextSevenScore=(seven1+seven2+seven3+seven4)/4;
		lstu.setContextSevenScroue(contextSevenScore);	
		return ls;

	}




	/***第三个技能测试***/
	private LevelkillStudent  leveaKill_three(LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			 Double itemContextSevenFirst, Double itemContextSevenSecond, Double itemContextSevenThirdly,Double itemContextSevenFourthly){
		// 第一小部分
		LevelkillStudent lstu=ls;
		TreeMap<Double,Integer> hashMap1= new  TreeMap<>(new ACountResult());
		hashMap1.put(44.0,0);hashMap1.put(43.99,17);hashMap1.put(41.99,30);
		hashMap1.put(39.99,43);hashMap1.put(37.99,57);hashMap1.put(35.99,70);
		hashMap1.put(33.99,83);hashMap1.put(31.99,90);hashMap1.put(29.99,100);
		int oneSc1=0,oneSc2=0, oneSc3=0,oneSc4=0;
		for (Map.Entry<Double, Integer> hashmap1 : hashMap1.entrySet()) {
			if(itemContextOneFirst>=hashmap1.getKey()) {
				oneSc1=hashmap1.getValue();
			}
			if(itemContextOneSecond>=hashmap1.getKey()) {
				oneSc2=hashmap1.getValue();
			}
			if(itemContextOneThirdly>=hashmap1.getKey()) {
				oneSc3=hashmap1.getValue();
			}
			if(itemContextOneFourthly!=null) {
				if(itemContextOneFourthly>=hashmap1.getKey()) {
					oneSc4=hashmap1.getValue();
				}	
			} 
		}
		//取总平均分
		int contextOneScroue=(oneSc1+oneSc2+oneSc3+oneSc4)/4;
		lstu.setContextOneScroue(contextOneScroue);

		// 第二小部分
		TreeMap<Double,Integer> hashMap2= new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap2.put(39.0,0);
		hashMap2.put(38.99,15);hashMap2.put(37.99,33);hashMap2.put(35.99,40);
		hashMap2.put(34.99,53);hashMap2.put(33.99,68);hashMap2.put(32.99,73);
		hashMap2.put(31.99,84);hashMap2.put(30.99,93);hashMap2.put(29.99,100);
		int towSc1=0,towSc2=0, towSc3=0,towSc4=0;
		ls.setContextTowFirst(itemContextTowFirst);
		ls.setContextTowSecond(itemContextTowSecond);
		ls.setContextTowThirdly(itemContextTowThirdly);
		ls.setContextTowFourthly(itemContextTowFourthly);
		for (Entry<Double, Integer> hashmap2 : hashMap2.entrySet()) {
			if(itemContextTowFirst>=hashmap2.getKey()) {
				towSc1=hashmap2.getValue();
			}
			if(itemContextTowSecond>=hashmap2.getKey()) {
				towSc2=hashmap2.getValue();
			}
			if(itemContextTowThirdly>=hashmap2.getKey()) {
				towSc3=hashmap2.getValue();
			}
			if(itemContextTowFourthly!=null) {
				if(itemContextTowFourthly>=hashmap2.getKey()) {
					towSc4=hashmap2.getValue();
				}
			}
		}
		int contextTowScroue=(towSc1+towSc2+towSc3+towSc4)/4;
		lstu.setContextTowScroue(contextTowScroue);
		// 第三小部分
		TreeMap<Double,Integer> hashMap3 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap3.put(5.0,0);hashMap3.put(6.0,3);
		hashMap3.put(7.0,15);hashMap3.put(8.0,27);hashMap3.put(9.0,31);
		hashMap3.put(10.0,40);hashMap3.put(11.0,51);hashMap3.put(12.0,60);
		hashMap3.put(13.0,73);hashMap3.put(14.0,80);hashMap3.put(15.0,86);
		hashMap3.put(16.0,91);hashMap3.put(17.0,95);hashMap3.put(18.0,100);
		int thr1=0,thr2=0, thr3=0,thr4=0;
		ls.setContextThreeFirst(itemContextThreeFirst);
		ls.setContextThreeSecond(itemContextThreeSecond);
		ls.setContextThreeThirdly(itemContextThreeThirdly);
		ls.setContextThreeFourthly(itemContextThreeFourthly);
		for (Entry<Double, Integer> hashmap3 : hashMap3.entrySet()) {
			if(itemContextThreeFirst>=hashmap3.getKey()) {
				thr1=hashmap3.getValue();
			}
			if(itemContextThreeSecond>=hashmap3.getKey()) {
				thr2=hashmap3.getValue();
			}
			if(itemContextThreeThirdly>=hashmap3.getKey()) {
				thr3=hashmap3.getValue();
			}
			if(itemContextThreeFourthly!=null) {
				if(itemContextThreeFourthly>=hashmap3.getKey()) {
					thr4=hashmap3.getValue();
				}
			}
		}
		int contextThreScroue=(thr1+thr2+thr3+thr4)/4;
		lstu.setContextThreeScroue(contextThreScroue);
		// 第四小部分
		TreeMap<Double,Integer>  hashMap4 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap4.put(40.0,0);hashMap4.put(39.99,5);
		hashMap4.put(34.99,10);hashMap4.put(29.99,23);
		hashMap4.put(24.99,34);hashMap4.put(19.99,40);
		hashMap4.put(17.99,50);hashMap4.put(16.99,60);hashMap4.put(14.99,70);
		hashMap4.put(13.99,80);hashMap4.put(12.99,90);hashMap4.put(11.99,100);
		int forth1=0, forth2=0, forth3=0, forth4=0;
		ls.setContextFrothFirst(itemContextFrothFirst);
		ls.setContextFrothSecond(itemContextFrothSecond);
		ls.setContextFrothThirdly(itemContextFrothThirdly);
		ls.setContextFrothFourthly(itemContextFrothFourthly);
		for (Entry<Double, Integer> hashmap4 : hashMap4.entrySet()) {
			if(itemContextFrothFirst>=hashmap4.getKey()) {
				forth1=hashmap4.getValue();
			}
			if(itemContextFrothSecond>=hashmap4.getKey()) {
				forth2=hashmap4.getValue();
			}
			if(itemContextFrothThirdly>=hashmap4.getKey()) {
				forth3=hashmap4.getValue();
			}
			if(itemContextFrothFourthly!=null) {
				if(itemContextFrothFourthly>=hashmap4.getKey()) {
					forth4=hashmap4.getValue();
				}
			}
		}
		int contextForthScroue=(forth1+forth2+forth3+forth4)/4;
		lstu.setContextFrothScroue(contextForthScroue);


		// ，第5小部分
		TreeMap<Double,Integer> hashMap5 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap5.put(0.0,0);
		hashMap5.put(1.0,7);hashMap5.put(2.0,23);hashMap5.put(3.0,34);
		hashMap5.put(4.0,40);hashMap5.put(5.0,58);hashMap5.put(6.0,70);
		hashMap5.put(7.0,82);hashMap5.put(8.0,91);hashMap5.put(9.0,100);
		int five1=0,five2=0,five3=0, five4=0;
		ls.setContextFiveFirst(itemContextFiveFirst);
		ls.setContextFiveSecond(itemContextFiveSecond);
		ls.setContextFiveThirdly(itemContextFiveThirdly);
		ls.setContextFiveFourthly(itemContextFiveFourthly);
		for (Entry<Double, Integer> hashmap5 : hashMap5.entrySet()) {
			if(itemContextFiveFirst>=hashmap5.getKey()) {
				five1=hashmap5.getValue();
			}
			if(itemContextFiveSecond>=hashmap5.getKey()) {
				five2=hashmap5.getValue();
			}
			if(itemContextFiveThirdly>=hashmap5.getKey()) {
				five3=hashmap5.getValue();
			}
			if(itemContextFiveFourthly!=null) {
				if(itemContextFiveFourthly>=hashmap5.getKey()) {
					five4=hashmap5.getValue();
				}
			}
		}
		int contextfiveScroue=(five1+five2+five3+five4)/4;
		lstu.setContextFiveScroue(contextfiveScroue);


		// ，第6小部分
		TreeMap<Double,Integer> hashMap6 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap6.put(0.0,0);
		hashMap6.put(1.0,3);hashMap6.put(2.0,10);hashMap6.put(3.0,15);
		hashMap6.put(4.0,20);hashMap6.put(5.0,25);hashMap6.put(6.0,33);
		hashMap6.put(7.0,43);hashMap6.put(8.0,54);hashMap6.put(9.0,67);
		hashMap6.put(10.0,79);hashMap6.put(11.0,90);hashMap6.put(12.0,100);
		int six1=0, six2=0,six3=0, six4=0;
		ls.setContextSixFirst(itemContextSixFirst);
		ls.setContextSixSecond(itemContextSixSecond);
		ls.setContextSixThirdly(itemContextSixThirdly);
		ls.setContextSixFourthly(itemContextSixFourthly);
		for (Entry<Double, Integer> hashmap6 : hashMap6.entrySet()) {
			if(itemContextSixFirst>=hashmap6.getKey()) {
				six1=hashmap6.getValue();
			}
			if(itemContextSixSecond>=hashmap6.getKey()) {
				six2=hashmap6.getValue();
			}
			if(itemContextSixThirdly>=hashmap6.getKey()) {
				six3=hashmap6.getValue();
			}
			if(itemContextSixFourthly!=null) {
				if(itemContextSixFourthly>=hashmap6.getKey()) {
					six4=hashmap6.getValue();
				}
			}
		}
		int contextSixScroue=(six1+six2+six3+six4)/4;
		lstu.setContextSixScroue(contextSixScroue);
		// 第7小部分
		TreeMap<Double,Integer> hashMap7 = new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap7.put(23.0,0);
		hashMap7.put(22.99,8);hashMap7.put(21.99,17);hashMap7.put(20.99,33);
		hashMap7.put(19.99,40);hashMap7.put(18.99,54);
		hashMap7.put(17.99,67);hashMap7.put(16.99,71);
		hashMap7.put(15.99,82);hashMap7.put(14.99,90);hashMap7.put(13.99,100);
		int seven1=0,seven2=0, seven3=0,seven4=0;
		ls.setContextSevenFirst(itemContextSevenFirst);
		ls.setContextSevenSecond(itemContextSevenSecond);
		ls.setContextSevenThirdly(itemContextSevenThirdly);
		ls.setContextSevenFourthly(itemContextSevenFourthly);
		for (Entry<Double, Integer> hashmap7 : hashMap7.entrySet()) {
			if(itemContextSevenFirst>=hashmap7.getKey()) {
				seven1=hashmap7.getValue();
			}
			if(itemContextSevenSecond>=hashmap7.getKey()) {
				seven2=hashmap7.getValue();
			}
			if(itemContextSevenThirdly>=hashmap7.getKey()) {
				seven3=hashmap7.getValue();
			}
			if(itemContextSevenFourthly!=null) {
				if(itemContextSevenFourthly>=hashmap7.getKey()) {
					seven4=hashmap7.getValue();
				}
			}
		}
		int contextSevenScore=(seven1+seven2+seven3+seven4)/4;
		lstu.setContextSevenScroue(contextSevenScore);
		return lstu;	

	}


	/***第四个技能测试***/
	private LevelkillStudent  leveaKill_forth(LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			 Double itemContextSevenFirst, Double itemContextSevenSecond, Double itemContextSevenThirdly,Double itemContextSevenFourthly){
		// 第一小部分
		LevelkillStudent lstu=ls;
		TreeMap<Double,Integer> hashMap1= new  TreeMap<>(new ACountResult());
		hashMap1.put(39.0,0);
		hashMap1.put(38.99,15);hashMap1.put(36.99,33);hashMap1.put(34.99,40);
		hashMap1.put(32.99,53);hashMap1.put(31.99,68);hashMap1.put(30.99,73);
		hashMap1.put(29.99,84);hashMap1.put(28.99,93);hashMap1.put(27.99,100);

		int oneSc1=0,oneSc2=0, oneSc3=0,oneSc4=0;
		for (Map.Entry<Double, Integer> hashmap1 : hashMap1.entrySet()) {
			if(itemContextOneFirst>=hashmap1.getKey()) {
				oneSc1=hashmap1.getValue();
			}
			if(itemContextOneSecond>=hashmap1.getKey()) {
				oneSc2=hashmap1.getValue();
			}
			if(itemContextOneThirdly>=hashmap1.getKey()) {
				oneSc3=hashmap1.getValue();
			}
			if(itemContextOneFourthly!=null) {
				if(itemContextOneFourthly>=hashmap1.getKey()) {
					oneSc4=hashmap1.getValue();
				}	
			} 
		}
		//取总平均分
		int contextOneScroue=(oneSc1+oneSc2+oneSc3+oneSc4)/4;
		lstu.setContextOneScroue(contextOneScroue);
		// 第二小部分
		TreeMap<Double,Integer> hashMap2= new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap2.put(2.0,0);
		hashMap2.put(3.0,3);hashMap2.put(4.0,7);hashMap2.put(5.0,15);
		hashMap2.put(6.0,23);hashMap2.put(7.0,35);
		hashMap2.put(8.0,40);hashMap2.put(9.0,54);
		hashMap2.put(10.0,68);hashMap2.put(11.0,83);hashMap2.put(12.0,91);
		hashMap2.put(13.0,100);
		int towSc1=0,towSc2=0, towSc3=0,towSc4=0;
		ls.setContextTowFirst(itemContextTowFirst);
		ls.setContextTowSecond(itemContextTowSecond);
		ls.setContextTowThirdly(itemContextTowThirdly);
		ls.setContextTowFourthly(itemContextTowFourthly);
		for (Entry<Double, Integer> hashmap2 : hashMap2.entrySet()) {
			if(itemContextTowFirst>=hashmap2.getKey()) {
				towSc1=hashmap2.getValue();
			}
			if(itemContextTowSecond>=hashmap2.getKey()) {
				towSc2=hashmap2.getValue();
			}
			if(itemContextTowThirdly>=hashmap2.getKey()) {
				towSc3=hashmap2.getValue();
			}
			
		}
		int contextTowScroue=(towSc1+towSc2+towSc3)/3;
		lstu.setContextTowScroue(contextTowScroue);
		
		
		// 第三小部分
		TreeMap<Double,Integer> hashMap3 =  new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap3.put(35.0,0);hashMap3.put(34.99,3);hashMap3.put(32.99,3);
		hashMap3.put(30.99,3);hashMap3.put(28.99,3);hashMap3.put(26.99,3);
		hashMap3.put(24.99,3);hashMap3.put(22.99,3);hashMap3.put(20.99,3);
		hashMap3.put(18.99,3);hashMap3.put(16.99,3);hashMap3.put(14.99,3);
		int thr1=0,thr2=0, thr3=0,thr4=0;
		ls.setContextThreeFirst(itemContextThreeFirst);
		ls.setContextThreeSecond(itemContextThreeSecond);
		ls.setContextThreeThirdly(itemContextThreeThirdly);
		ls.setContextThreeFourthly(itemContextThreeFourthly);
		for (Entry<Double, Integer> hashmap3 : hashMap3.entrySet()) {
			if(itemContextThreeFirst>=hashmap3.getKey()) {
				thr1=hashmap3.getValue();
			}
			if(itemContextThreeSecond>=hashmap3.getKey()) {
				thr2=hashmap3.getValue();
			}
			if(itemContextThreeThirdly>=hashmap3.getKey()) {
				thr3=hashmap3.getValue();
			}
		 
		}
		int contextThreScroue=(thr1+thr2+thr3)/3;
		lstu.setContextThreeScroue(contextThreScroue);
		// 第四小部分
		TreeMap<Double,Integer>  hashMap4 =  new  TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap4.put(0.0,0);
		hashMap4.put(1.0,10);hashMap4.put(2.0,17);
		hashMap4.put(3.0,30);hashMap4.put(4.0,46);
		hashMap4.put(5.0,60);hashMap4.put(6.0,72);
		hashMap4.put(7.0,80);hashMap4.put(8.0,90);hashMap4.put(9.0,100);
		int forth1=0, forth2=0, forth3=0, forth4=0;
		ls.setContextFrothFirst(itemContextFrothFirst);
		ls.setContextFrothSecond(itemContextFrothSecond);
		ls.setContextFrothThirdly(itemContextFrothThirdly);
		ls.setContextFrothFourthly(itemContextFrothFourthly);
		for (Entry<Double, Integer> hashmap4 : hashMap4.entrySet()) {
			if(itemContextFrothFirst>=hashmap4.getKey()) {
				forth1=hashmap4.getValue();
			}
			if(itemContextFrothSecond>=hashmap4.getKey()) {
				forth2=hashmap4.getValue();
			}
			if(itemContextFrothThirdly>=hashmap4.getKey()) {
				forth3=hashmap4.getValue();
			}
			if(itemContextFrothFourthly!=null) {
				if(itemContextFrothFourthly>=hashmap4.getKey()) {
					forth4=hashmap4.getValue();
				}
			}
		}
		int contextForthScroue=(forth1+forth2+forth3+forth4)/4;
		lstu.setContextFrothScroue(contextForthScroue);



		// ，第5小部分
		TreeMap<Double,Integer> hashMap5 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap5.put(24.0,0);
		hashMap5.put(23.99,7);hashMap5.put(22.99,10);
		hashMap5.put(21.99,17);hashMap5.put(20.99,27);
		hashMap5.put(19.99,40);
		hashMap5.put(18.99,57);hashMap5.put(17.99,77);
		hashMap5.put(16.99,88);hashMap5.put(15.99,100);
		int five1=0,five2=0,five3=0, five4=0;
		ls.setContextFiveFirst(itemContextFiveFirst);
		ls.setContextFiveSecond(itemContextFiveSecond);
		ls.setContextFiveThirdly(itemContextFiveThirdly);
		ls.setContextFiveFourthly(itemContextFiveFourthly);
		for (Entry<Double, Integer> hashmap5 : hashMap5.entrySet()) {
			if(itemContextFiveFirst>=hashmap5.getKey()) {
				five1=hashmap5.getValue();
			}
			if(itemContextFiveSecond>=hashmap5.getKey()) {
				five2=hashmap5.getValue();
			}
			if(itemContextFiveThirdly>=hashmap5.getKey()) {
				five3=hashmap5.getValue();
			}
			if(itemContextFiveFourthly!=null) {
				if(itemContextFiveFourthly>=hashmap5.getKey()) {
					five4=hashmap5.getValue();
				}
			}
		}
		int contextfiveScroue=(five1+five2+five3+five4)/4;
		lstu.setContextFiveScroue(contextfiveScroue);

		// ，第6小部分
		TreeMap<Double,Integer> hashMap6 =   new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap6.put(0.0,0);hashMap6.put(1.0,3);hashMap6.put(2.0,13);
		hashMap6.put(3.0,40);hashMap6.put(4.0,57);hashMap6.put(5.0,67);
		hashMap6.put(6.0,80);hashMap6.put(7.0,90);hashMap6.put(8.0,100);
		int six1=0, six2=0,six3=0, six4=0;
		ls.setContextSixFirst(itemContextSixFirst);
		ls.setContextSixSecond(itemContextSixSecond);
		ls.setContextSixThirdly(itemContextSixThirdly);
		ls.setContextSixFourthly(itemContextSixFourthly);
		for (Entry<Double, Integer> hashmap6 : hashMap6.entrySet()) {
			if(itemContextSixFirst>=hashmap6.getKey()) {
				six1=hashmap6.getValue();
			}
			if(itemContextSixSecond>=hashmap6.getKey()) {
				six2=hashmap6.getValue();
			}
			if(itemContextSixThirdly>=hashmap6.getKey()) {
				six3=hashmap6.getValue();
			}
			 
		}
		int contextSixScroue=(six1+six2+six3)/3;
		lstu.setContextSixScroue(contextSixScroue);

		//第一个技能测试，第⑥小部分
		TreeMap<Double,Integer> hashMap7 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap7.put(0.0,0);hashMap7.put(1.0,3);hashMap7.put(2.0,21);
		hashMap7.put(3.0,34);hashMap7.put(4.0,46);
		hashMap7.put(5.0,61);hashMap7.put(6.0,75);
		hashMap7.put(7.0,89);hashMap7.put(8.0,100);
		int seven1=0,seven2=0, seven3=0,seven4=0;
		ls.setContextSevenFirst(itemContextSevenFirst);
		ls.setContextSevenSecond(itemContextSevenSecond);
		ls.setContextSevenThirdly(itemContextSevenThirdly);
		ls.setContextSevenFourthly(itemContextSevenFourthly);
		for (Entry<Double, Integer> hashmap7 : hashMap7.entrySet()) {
			if(itemContextSevenFirst>=hashmap7.getKey()) {
				seven1=hashmap7.getValue();
			}
			if(itemContextSevenSecond>=hashmap7.getKey()) {
				seven2=hashmap7.getValue();
			}
			if(itemContextSevenThirdly>=hashmap7.getKey()) {
				seven3=hashmap7.getValue();
			}
			if(itemContextSevenFourthly!=null) {
				if(itemContextSevenFourthly>=hashmap7.getKey()) {
					seven4=hashmap7.getValue();
				}
			}
		}
		int contextSevenScore=(seven1+seven2+seven3+seven4)/4;
		lstu.setContextSevenScroue(contextSevenScore);
		return lstu;	
	}


	/***第五个技能测试***/
	private LevelkillStudent  leveaKill_five(LevelkillStudent ls,
			Double itemContextOneFirst,Double itemContextOneSecond,Double itemContextOneThirdly,Double itemContextOneFourthly,
			Double itemContextTowFirst,Double itemContextTowSecond,Double itemContextTowThirdly,Double itemContextTowFourthly,
			Double itemContextThreeFirst,Double itemContextThreeSecond,Double itemContextThreeThirdly,Double itemContextThreeFourthly,
			Double itemContextFrothFirst,Double itemContextFrothSecond,Double itemContextFrothThirdly,Double itemContextFrothFourthly,
			Double itemContextFiveFirst,Double itemContextFiveSecond,Double itemContextFiveThirdly,Double itemContextFiveFourthly,
			Double itemContextSixFirst,Double itemContextSixSecond,Double itemContextSixThirdly,Double itemContextSixFourthly,
			 Double itemContextSevenFirst, Double itemContextSevenSecond, Double itemContextSevenThirdly,Double itemContextSevenFourthly){
		// 第一小部分
		LevelkillStudent lstu=ls;
		TreeMap<Double,Integer> hashMap1= new TreeMap<>(new ACountResult());
		hashMap1.put(39.0,0);
		hashMap1.put(38.99,14);hashMap1.put(36.99,33);
		hashMap1.put(34.99,47);hashMap1.put(32.99,54);
		hashMap1.put(30.99,78);hashMap1.put(28.99,83);
		hashMap1.put(27.99,91);hashMap1.put(26.99,100);
		int oneSc1=0,oneSc2=0, oneSc3=0,oneSc4=0;
		for (Map.Entry<Double, Integer> hashmap1 : hashMap1.entrySet()) {
			if(itemContextOneFirst>=hashmap1.getKey()) {
				oneSc1=hashmap1.getValue();
			}
			if(itemContextOneSecond>=hashmap1.getKey()) {
				oneSc2=hashmap1.getValue();
			}
			if(itemContextOneThirdly>=hashmap1.getKey()) {
				oneSc3=hashmap1.getValue();
			}
			if(itemContextOneFourthly!=null) {
				if(itemContextOneFourthly>=hashmap1.getKey()) {
					oneSc4=hashmap1.getValue();
				}	
			} 
		}
		//取总平均分
		int contextOneScroue=(oneSc1+oneSc2+oneSc3+oneSc4)/4;
		lstu.setContextOneScroue(contextOneScroue);

		// 第二小部分
		TreeMap<Double,Integer> hashMap2= new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap2.put(49.00,0);
		hashMap2.put(48.99,5);hashMap2.put(47.99,10);
		hashMap2.put(45.99,20);hashMap2.put(43.99,26);
		hashMap2.put(41.99,35);hashMap2.put(39.99,40);
		hashMap2.put(37.99,56);hashMap2.put(35.99,67);
		hashMap2.put(33.99,73);hashMap2.put(31.99,83);
		hashMap2.put(29.99,91);hashMap2.put(28.99,100);
		int towSc1=0,towSc2=0, towSc3=0,towSc4=0;
		ls.setContextTowFirst(itemContextTowFirst);
		ls.setContextTowSecond(itemContextTowSecond);
		ls.setContextTowThirdly(itemContextTowThirdly);
		ls.setContextTowFourthly(itemContextTowFourthly);
		for (Entry<Double, Integer> hashmap2 : hashMap2.entrySet()) {
			if(itemContextTowFirst>=hashmap2.getKey()) {
				towSc1=hashmap2.getValue();
			}
			if(itemContextTowSecond>=hashmap2.getKey()) {
				towSc2=hashmap2.getValue();
			}
			if(itemContextTowThirdly>=hashmap2.getKey()) {
				towSc3=hashmap2.getValue();
			}
			if(itemContextTowFourthly!=null) {
				if(itemContextTowFourthly>=hashmap2.getKey()) {
					towSc4=hashmap2.getValue();
				}
			}
		}
		int contextTowScroue=(towSc1+towSc2+towSc3+towSc4)/4;
		lstu.setContextTowScroue(contextTowScroue);
		
		// 第三小部分
		TreeMap<Double,Integer> hashMap3 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap3.put(0.0,0);hashMap3.put(1.0,3);hashMap3.put(2.0,13);
		hashMap3.put(3.0,30);hashMap3.put(4.0,40);hashMap3.put(5.0,57);
		hashMap3.put(6.0,82);hashMap3.put(7.0,90);hashMap3.put(8.0,100);
		int thr1=0,thr2=0, thr3=0,thr4=0;
		ls.setContextThreeFirst(itemContextThreeFirst);
		ls.setContextThreeSecond(itemContextThreeSecond);
		ls.setContextThreeThirdly(itemContextThreeThirdly);
		ls.setContextThreeFourthly(itemContextThreeFourthly);
		for (Entry<Double, Integer> hashmap3 : hashMap3.entrySet()) {
			if(itemContextThreeFirst>=hashmap3.getKey()) {
				thr1=hashmap3.getValue();
			}
			if(itemContextThreeSecond>=hashmap3.getKey()) {
				thr2=hashmap3.getValue();
			}
			if(itemContextThreeThirdly>=hashmap3.getKey()) {
				thr3=hashmap3.getValue();
			}
			if(itemContextThreeFourthly!=null) {
				if(itemContextThreeFourthly>=hashmap3.getKey()) {
					thr4=hashmap3.getValue();
				}
			}
		}
		int contextThreScroue=(thr1+thr2+thr3+thr4)/4;
		lstu.setContextThreeScroue(contextThreScroue);

		// 第四小部分
		TreeMap<Double,Integer>  hashMap4 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap4.put(28.0,0);
		hashMap4.put(27.99,8);hashMap4.put(26.99,17);hashMap4.put(25.99,27);
		hashMap4.put(24.99,40);hashMap4.put(23.99,58);hashMap4.put(22.99,77);
		hashMap4.put(21.99,82);hashMap4.put(20.99,91);hashMap4.put(19.99,100);
		int forth1=0, forth2=0, forth3=0, forth4=0;
		ls.setContextFrothFirst(itemContextFrothFirst);
		ls.setContextFrothSecond(itemContextFrothSecond);
		ls.setContextFrothThirdly(itemContextFrothThirdly);
		ls.setContextFrothFourthly(itemContextFrothFourthly);
		for (Entry<Double, Integer> hashmap4 : hashMap4.entrySet()) {
			if(itemContextFrothFirst>=hashmap4.getKey()) {
				forth1=hashmap4.getValue();
			}
			if(itemContextFrothSecond>=hashmap4.getKey()) {
				forth2=hashmap4.getValue();
			}
			if(itemContextFrothThirdly>=hashmap4.getKey()) {
				forth3=hashmap4.getValue();
			}
			 
		}
		int contextForthScroue=(forth1+forth2+forth3)/3;
		lstu.setContextFrothScroue(contextForthScroue);
		// ，第⑤小部分
		TreeMap<Double,Integer> hashMap5 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap5.put(46.0,0);hashMap5.put(45.99,7);hashMap5.put(43.99,13);
		hashMap5.put(42.99,20);hashMap5.put(41.99,30);
		hashMap5.put(40.99,34);hashMap5.put(39.99,44);hashMap5.put(38.99,56);
		hashMap5.put(37.99,67);hashMap5.put(36.99,73);
		hashMap5.put(35.99,88);hashMap5.put(34.99,100);
		int five1=0,five2=0,five3=0, five4=0;
		ls.setContextFiveFirst(itemContextFiveFirst);
		ls.setContextFiveSecond(itemContextFiveSecond);
		ls.setContextFiveThirdly(itemContextFiveThirdly);
		ls.setContextFiveFourthly(itemContextFiveFourthly);
		for (Entry<Double, Integer> hashmap5 : hashMap5.entrySet()) {
			if(itemContextFiveFirst>=hashmap5.getKey()) {
				five1=hashmap5.getValue();
			}
			if(itemContextFiveSecond>=hashmap5.getKey()) {
				five2=hashmap5.getValue();
			}
			if(itemContextFiveThirdly>=hashmap5.getKey()) {
				five3=hashmap5.getValue();
			}
			if(itemContextFiveFourthly!=null) {
				if(itemContextFiveFourthly>=hashmap5.getKey()) {
					five4=hashmap5.getValue();
				}
			}
		}
		int contextfiveScroue=(five1+five2+five3+five4)/4;
		lstu.setContextFiveScroue(contextfiveScroue);
		// ，第⑥小部分
		TreeMap<Double,Integer> hashMap6 =  new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap6.put(0.0,0);hashMap6.put(1.0,7);
		hashMap6.put(2.0,17);hashMap6.put(3.0,30);
		hashMap6.put(4.0,40);hashMap6.put(5.0,57);
		hashMap6.put(6.0,70);hashMap6.put(7.0,81);
		hashMap6.put(8.0,93);hashMap6.put(9.0,100);
		int six1=0, six2=0,six3=0, six4=0;
		ls.setContextSixFirst(itemContextSixFirst);
		ls.setContextSixSecond(itemContextSixSecond);
		ls.setContextSixThirdly(itemContextSixThirdly);
		ls.setContextSixFourthly(itemContextSixFourthly);
		for (Entry<Double, Integer> hashmap6 : hashMap6.entrySet()) {
			if(itemContextSixFirst>=hashmap6.getKey()) {
				six1=hashmap6.getValue();
			}
			if(itemContextSixSecond>=hashmap6.getKey()) {
				six2=hashmap6.getValue();
			}
			if(itemContextSixThirdly>=hashmap6.getKey()) {
				six3=hashmap6.getValue();
			}
			if(itemContextSixFourthly!=null) {
				if(itemContextSixFourthly>=hashmap6.getKey()) {
					six4=hashmap6.getValue();
				}
			}
		}
		int contextSixScroue=(six1+six2+six3+six4)/4;
		lstu.setContextSixScroue(contextSixScroue);

		//第一个技能测试，第⑥小部分
		TreeMap<Double,Integer> hashMap7 = new TreeMap<>(new ACountResult());
		//个数  -分数
		hashMap7.put(40.0,0);
		hashMap7.put(39.99,15);hashMap7.put(37.99,33);hashMap7.put(35.99,40);
		hashMap7.put(33.99,53);hashMap7.put(32.99,68);hashMap7.put(31.99,73);
		hashMap7.put(30.99,84);hashMap7.put(29.99,93);hashMap7.put(28.99,100);
		int seven1=0,seven2=0, seven3=0,seven4=0;
		ls.setContextSevenFirst(itemContextSevenFirst);
		ls.setContextSevenSecond(itemContextSevenSecond);
		ls.setContextSevenThirdly(itemContextSevenThirdly);
		ls.setContextSevenFourthly(itemContextSevenFourthly);
		for (Entry<Double, Integer> hashmap7 : hashMap7.entrySet()) {
			if(itemContextSevenFirst>=hashmap7.getKey()) {
				seven1=hashmap7.getValue();
			}
			if(itemContextSevenSecond>=hashmap7.getKey()) {
				seven2=hashmap7.getValue();
			}
			if(itemContextSevenThirdly>=hashmap7.getKey()) {
				seven3=hashmap7.getValue();
			}
			if(itemContextSevenFourthly!=null) {
				if(itemContextSevenFourthly>=hashmap7.getKey()) {
					seven4=hashmap7.getValue();
				}
			}
		}
		int contextSevenScore=(seven1+seven2+seven3+seven4)/4;
		lstu.setContextSevenScroue(contextSevenScore);
		return lstu;	
	}
	
}
